package net.simflow.swf.analyzer.opt;

import org.eclipse.swt.graphics.FontData;

public class FontDataClone {
	public static FontData clone(FontData oriData) {
		if (oriData == null) {
			return null;
		}

		FontData newData = new FontData();
		newData.setHeight(oriData.getHeight());
		newData.setLocale(oriData.getLocale());
		newData.setName(oriData.getName());
		newData.setStyle(oriData.getStyle());

		return newData;
	}
}
